package com.feng.modules.plat.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.feng.modules.core.dao.impl.BaseDao;
import com.feng.modules.plat.dao.ILoginDao;

public class LoginDaoImpl extends BaseDao implements ILoginDao{

	@Override
	public List getUserName(Map<String,Object> map) {
		Map responsMap =new HashMap();
		responsMap.put("LOGINID", map.get("LOGINID"));
		return (List)super.getSqlSessionTemplate().selectList("plat.select_base_user", responsMap);
	}

	@Override
	public List validatePassword(Map<String, Object> map) {
		return (List)super.getSqlSessionTemplate().selectList("plat.select_base_user", map);
	}

	@Override
	public void saveLog(Map sessionMap) {
		this.getSqlSessionTemplate().insert("user.insert_BASE_LOG", sessionMap);
		
	}
	
}
